#!/usr/local/bin/python3
# -*- coding: utf-8 -*-

"""
@File    : stdf_data_class.py
@Author  : Link
@Time    : 2022/6/17 11:20
@Mark    : 
"""
from dataclasses import dataclass


class LimitTypes:
    NA = "NA"  # 不卡控
    LE = "LE"  # 小于等于
    LT = "LT"  # 小于
    GE = "GE"  # 大于等于
    GT = "GT"  # 大于


@dataclass
class LimitClass:
    TEST_NUM: int = 0  # 测试项目ID
    TEST_TXT: str = ""  # 测试项目名称
    L_LIMIT: float = 0.0
    LO_LIMIT_TYPE: str = LimitTypes.GE  # 测试Limit类型
    HI_LIMIT_TYPE: str = LimitTypes.LE  # 测试Limit类型
    H_LIMIT: float = 0.0
    UNITS: str = ""  # 测试项目单位
    SOFT_BIN: int = 0
    SOFT_BIN_NAME: str = ""
    HARD_BIN: int = 0
    HARD_BIN_NAME: str = ""
    SET_BIN_LEVEL: int = 1
    SET_BIN_NAME: str = "PASS"
